package com.itheima.reggie;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.transaction.annotation.EnableTransactionManagement;

//Springboot启动类
@SpringBootApplication
@EnableTransactionManagement//开启声明式事务
@MapperScan("com.itheima.reggie.mapper") //持久层接口扫描
@Slf4j //打印日志
public class WebManageApplication {
    public static void main(String[] args) {
        SpringApplication.run(WebManageApplication.class, args);
        log.info("web端服务器启动成功");
    }
}
